STEP 7: Time to control how the paddle moves back and forth!

  • From add Move Mouse and click Run. Uh oh! We don't want the brick to move!
  • Find this line ····sprite.set_position(x,·y)¬ and change sprite to paddle so that the paddle moves!
  • Change the y-coordinate in .set_position() from y to -235 so that paddle stays at the bottom of the stage!
  • Delete this line from in the event: ····y·=·stage.mouse_y()¬

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)